package com.mz361.stdapi.controller;

import com.mz361.common.utils.ResultVoUtil;
import com.mz361.common.vo.ResultVo;
import com.mz361.component.jwt.annotation.IgnorePermissions;
import com.mz361.stdapi.domain.LargeDataResult;
import com.mz361.stdapi.service.LargeScreenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author niceale
 * @ date 2024/04/17
 */
@Api(tags = "数据大屏调用接口")
@RestController
@Slf4j
public class LargeScreenController {
    @Autowired
    LargeScreenService largeScreenService;

    @ApiOperation(value = "大屏数据接口", notes = "大屏数据接口，展示大屏动态数据")
    @GetMapping("/api/v1/LargeScreen")
    @CrossOrigin
    @IgnorePermissions
    public ResultVo<LargeDataResult> LargeScreen() {
        return ResultVoUtil.success("查询成功", largeScreenService.largeScreen());
    }


}
